import request from '@/utils/request'


//查询列表
export function list(query) {
  return request({
    url: '/tms/pra/list',
    method: 'get',
    params: query
  })
}

//删除和批量删除
export function del(ids) {
  return request({
    url: '/tms/pra/del',
    method: 'delete',
    data: ids  // 使用data传递ID数组
  })
}
export function update(data) {
  return request({
    url: '/tms/pra/update',
    method: 'put', // 根据后端要求使用put/post
    data: data
  })
}
